import './common/rem';
import Vue from 'vue'
import App from './App.vue'
import router from './router';
import customRootApi from './common/bury/customRootApi';
import './assets/css/normalize.css';
import exposure from './common/bury/index.js';

Vue.config.productionTip = false
Vue.use(exposure);

// 注入全局API
const customRootApiList = Object.keys(customRootApi);
console.log('customRootApiList', customRootApiList)
for(let i = 0; i < customRootApiList.length; i ++) {
  const apiName = customRootApiList[i];
  Vue.prototype[apiName] = customRootApi[apiName];
}

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
